package com.xpu.stock.service;

import com.xpu.stock.common.domain.InnerMarketDomain;
import com.xpu.stock.common.domain.Stock4EvrDayDomain;
import com.xpu.stock.common.domain.Stock4MinuteDomain;
import com.xpu.stock.common.domain.StockUpdownDomain;
import com.xpu.stock.pojo.StockBusiness;
import com.xpu.stock.vo.resp.PageResult;
import com.xpu.stock.vo.resp.Result;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface StockService {
    List<StockBusiness> findAll();

    Result<List<InnerMarketDomain>> getNewAMarketInfo();

    Result<List<StockUpdownDomain>> getStockRtInfoLimit();

    Result<PageResult<StockUpdownDomain>> getStockInfo4Page(Integer page, Integer pageSize);



    Result<Map> getStockUpDownCount();

    /**
     * @param response http的响应对象，可获取流对象，写出对象
     * @param page 当前页
     * @param pageSize 每页大小
     */
    void stockExport(HttpServletResponse response, Integer page, Integer pageSize) throws IOException;

    Result<Map> getStockTradeVol4Comparsion();

    Result<Map> getStockUpDownRegion();


    Result<List<Stock4MinuteDomain>> stockScreenTimeSharing(String stockCode);

    Result<List<Stock4EvrDayDomain>> stockScreenDkLine(String code);
}
